#include <iostream>
using namespace std;

const int N = 1e5 + 10;
int n,k;
int m[N];

long long calc(int x){
	long long c = 0;
	for(int i = 1;i <= n;i++){
		c += m[i] / x;
	}
	return c;
}

int main(){
	cin >> n >> k;
	for(int i = 1;i <= n;i++){
		cin >> m[i];
	}
	
	long long le = 0,ri = 1e8,mid = (le + ri + 1) / 2;
	while(le < ri){
		if(calc(mid) >= k){
			le = mid;
		}
		else{
			ri = mid - 1;
		}
		mid = (le + ri + 1) / 2;
	}
	cout << le << endl;
	return 0;
}
